<?php
   class s{

	public function x($sum=1){

		for($i=1;$i<10;$i++){
			$sum = ($sum+1)*2;
		}
		echo "$sum";

	}
}
$c = new s();
echo $c->x();

?>